//-----------------------------------------------------------------------
// <copyright file="a_User_CareerService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_User_CareerService
    {
        #region a_User_Career

        public static void Createa_User_Career(a_User_Career a_User_Career)
        {            
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                a_User_CareerDAO.Createa_User_Career(a_User_Career);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_User_Career(a_User_Career a_User_Career)
        {            
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                a_User_CareerDAO.Updatea_User_Career(a_User_Career);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_User_Career(int carID)
        {            
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                a_User_CareerDAO.Deletea_User_Career(carID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_User_Career Geta_User_Career(int carID)
        {            
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                return a_User_CareerDAO.Geta_User_Career(carID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_User_CareerCollection Geta_User_CareerList(a_User_CareerColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                return a_User_CareerDAO.Geta_User_CareerList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_User_CareerCollection Geta_User_CareerList(a_User_CareerColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                return a_User_CareerDAO.Geta_User_CareerList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_User_CareerCollection Geta_User_CareerList_alphabet(string mychar, a_User_CareerColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                return a_User_CareerDAO.Geta_User_CareerList_alphabet(mychar, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_User_CareerCollection Geta_User_CareerList_alphabet(string mychar, a_User_CareerColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_User_CareerDAO a_User_CareerDAO = new a_User_CareerDAO();
                return a_User_CareerDAO.Geta_User_CareerList_alphabet(mychar, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }       

        #endregion
    }
}